package cn.nfwx.tv.manager;

import android.content.Context;

import java.io.IOException;

import cn.nfwx.tv.callback.ResponseListener;
import cn.nfwx.tv.helper.AccountHelper;
import cn.nfwx.tv.okhttp.CustomOkHttpClient;
import cn.nfwx.tv.okhttp.UrlHelper;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Response;

/**
 * Created by dell on 2018/3/22.
 */

public class QpopManager {

    /**
     * 公交直播
     *
     * @param callBack
     * @return
     */
    public static String requestQpopPlayList(Callback callBack) {
        String request_tag = "requestQpopPlayList";
        CustomOkHttpClient.cancleAll(request_tag);
        String url = UrlHelper.getQpopProgramListUrl();
        CustomOkHttpClient.doGet(url, request_tag, callBack);
        return request_tag;
    }

    /**
     * 公交回看
     *
     * @param lid
     * @param d
     * @param callBack
     * @return
     */
    public static String requestQpopVodList(int lid, String d, Callback callBack) {
        String request_tag = "requestQpopVodList";
        CustomOkHttpClient.cancleAll(request_tag);
        String url = UrlHelper.getQpopVodListUrl(lid, d);
        CustomOkHttpClient.doGet(url, request_tag, callBack);
        return request_tag;
    }
}
